package com.lyt.service;

import com.lyt.bean.User;
import org.springframework.stereotype.Service;

/**
 * @Author: lyt
 * @Date: 2023/04/09/20:03
 * @Description:
 */
@Service
public class UserService {

    public User getUser(String userid, String password){
        User user=new User();
            user.setUserId("20203776");
            user.setUsername("admin");
            user.setPassword("admin");
        if ("admin".equals(userid) && "admin".equals(password)){
//            User user=new User();
//            user.setUserID("admin");
//            user.setUserName2("admin");
//            user.setPassWord2("admin");
            return null;
        }
        else{
            return user;
        }
    }

    public User getUser(String userid){



            User user=new User();
            user.setUserId("20203776");
            user.setUsername("admin");
            user.setPassword("123456");
            return user;

    }

}
